home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / Snippets / Files / PBDTGetAppl / Source / Drawing.c next >
Encoding:
Text File  |  1992-10-07  |  547 b   |  23 lines  |  [TEXT/KAHL]

  1. /*
  2.     9-30-92  • Brigham Stevens
  3.     --------------------------
  4.     The Update Event Handler calls this routine when it
  5.     is time to update a window.
  6.     
  7.     The window to be updated is passed in, just draw it, or case on window type
  8.     or whatever.    
  9.     You don't have to erase first, it has been done for you by the update event handler
  10.     
  11.     Also, the printing routine will call this too.
  12.     
  13.     This is not really using a document model architecture.
  14.  
  15. */
  16.  
  17. void DrawImage(GrafPtr graf)
  18. {
  19.     PicHandle    pict;
  20.     
  21.     pict = GetPicture(128);
  22.     DrawPicture(pict,&graf->portRect);    
  23. }